package com.ysq.www.api.work.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ysq.www.api.work.entity.Firm;
import com.ysq.www.api.work.mapper.FirmMapper;
import com.ysq.www.api.work.service.IFirmService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 公司企业表 服务实现类
 * </p>
 *
 * @author dql
 * @since 2020-08-18
 */
@Service
public class FirmServiceImpl extends ServiceImpl<FirmMapper, Firm> implements IFirmService {

    /**
     * 查询公司集合
     * @return
     */
    @Override
    public List<Firm> selectList() {
        QueryWrapper<Firm> wrapper = new QueryWrapper<>();
        wrapper.eq("status",0).orderByAsc("id");
        List<Firm> fList = this.list(wrapper);
        return fList;
    }




}
